<template>
  <el-dialog  title="收货地址" :visible.sync="df">
    <el-form label-position="left" :model="form">
      <el-form-item label="角色名称" :label-width="formLabelWidth">
        <el-input style="width: 86%;" v-model="form.name" auto-complete="off"></el-input>
      </el-form-item>
      <el-form-item label="角色状态" :label-width="formLabelWidth">
        <el-select style="width: 86%;" v-model="form.region" placeholder="请选择活动区域">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <yc-button @click="handleCloseAdd" value="取消"></yc-button>
      <yc-button @click="handleCloseAdd" value="确定"></yc-button>
    </div>
  </el-dialog>
</template>

<script>
import ycButton from './button'
export default {
  components: {
    ycButton
  },
  data () {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      formLabelWidth: '90px',
    }
  },
  props: {
    df: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    handleCloseAdd () {
      this.df = false
      this.$emit('close', this.df)
    }
  }
}
</script>

<style>
.el-dialog{
  width: 20%;
}
</style>
